import _ from "lodash"

const array = ["jack", "lison", "lucky", "tom"]
const log = console.log

log(_.first(array))
log(_.last(array))
log(_.toUpper(_.first(array)))
log(_.reverse(array))

const r = _.each(array, (x, idex) => log(x, idex))
log(r)
